thesis.pdf: thesis.tex thesis.bib
	pdflatex thesis.tex
	bibtex thesis
	pdflatex thesis.tex
	pdflatex thesis.tex # Run twice in case cross-refs have changed

clean:
	-rm *.gz *.bbl *.blg *.aux *.log thesis.pdf
